	<div style="padding: 3px 14px;">
		<form class="frm1" id="form" action="<?php echo base_url($lang_url).(empty($lang_url) ? '' : '/'); ?>panel/users/<?php echo $method ?>" method="GET">
			<input type="text" class="size90" name="q" value="<?php echo (isset($q)) ? $q : ''; ?>" placeholder="Nombre Serie y/o Episodio" maxlength="100"/>
		</form>
	</div>	

	<?php  if(isset($list)){
		$req_uri = preg_replace(array('/\&pag=([0-9]+|)/', '/\?pag=([0-9]+|)/'), array('',''), 
					$_SERVER['REQUEST_URI']);
		$vsegment = explode('?', $req_uri);
		$this->pagination->initialize(array(
			'base_url' 			=> Sys::$url_base.$this->uri->uri_string().'/',
			'total_rows'		=> $list['total_rows'],
			'per_page'			=> $list['items_per_page'],
			'cur_page'			=> $list['result_page']*$list['items_per_page'],
			'page_query_string'	=> TRUE,
			'query_string_segment'=> (isset($vsegment[1])? '?'.$vsegment[1].'&pag': '?pag'),
			'num_links'			=> 1,
			'anchor_class'		=> 'pags corner-all'
		));
		
		$pagination = $this->pagination->create_links();
		// echo '<div class="pagination w100">'.$pagination.'</div>';

		?>

		<ul id="tree">
			
			<!-- SERIES -->
			<?php foreach($list['result_search'] as $key => $serie){ ?>
				<li class="no-padding no-margin">
					<span class="title-serie"><?php echo $serie['titulo'];?>
					</span>
					
					<!-- TEMPORADAS -->
					<?php foreach($serie['temporadas'] as $season){ ?>
						<ul class="no-margin no-padding">
							<li class="no-margin pdd-season">
								<span class="title-season"><?php echo 'Temporada '.$season['no_temporada']; ?></span>
								
								<!-- EPISODIOS -->
								<?php foreach($season['capitulos'] as $episode){ ?>
									<ul class="no-margin no-padding">
										<li class="no-margin pdd-episode">
											<span class="title-episode"><?php echo 'Episodio '.$episode['no_capitulo'].' - '.$episode['titulo']  ?>
												<!-- <a href="<?php //echo base_url($lang_url).(empty($lang_url) ? '' : '/');?>panel/series/edit_episode/<?php //echo $episode['id_capitulo'];?>" class="button up float-r" title="Editar Episodio">&nbsp;</a> -->
											</span>

											<!-- LINKS -->
											<?php foreach($episode['links'] as $link){ ?>
												<ul class="no-margin no-padding">
													<li class="no-margin pdd-episode">
														<span class="title-episode" style="color:#4C961B !important;"><?php echo $link['nombre'] ?>
															<a href="<?php echo base_url($lang_url).(empty($lang_url) ? '' : '/');?>panel/users/<?php echo $method2.'/'.$episode['id_capitulo'].'/'.$link['id_chash']; ?>" class="button up float-r" title="Editar Informacion">&nbsp;</a>
														</span>
													</li>
												</ul>
											<?php } ?>
										</li>
									</ul>
								
								<?php } ?>
							</li>
						</ul>
						
					<?php } ?>
				</li>
			<?php } ?>
			
		</ul>
		<?php echo '<div class="pagination w100">'.$pagination.'</div>';}?>